package com.byd.dms.vo;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
public class SysDictItemSelectVo implements Serializable {
    
    private static final long serialVersionUID = 1L;
    //@JSONField(serializeUsing = ToSystemNameSerializer.class)
    private String systemName;
    
    
    public SysDictItemSelectVo(String name, String code) {
        this.name = name;
        this.code = code;
    }
    
    private String name;
    
    private String code;
    
    // systemName的初始值是code, 然后通过code去查询对应的映射关系
    public String getSystemName() {
        return this.getCode();
    }
}